package com.example.jrfwcwgl.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.jrfwcwgl.entity.TCwReceiptPlan;
import com.example.jrfwcwgl.service.ITCwReceiptPlanService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.org.dto.TCwReceiptPlanDto;
import com.org.vo.ResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 收款计划表 前端控制器
 * </p>
 *
 * @author wgq
 * @since 2021-04-08
 */

@RestController
@RequestMapping("/jrfwcwgl/TCwReceiptPlanController")
public class TCwReceiptPlanController {

    @Autowired
    private ITCwReceiptPlanService itCwReceiptPlanService;


    @RequestMapping("list")
    public ResultEntity sellist(@RequestBody TCwReceiptPlanDto tCwReceiptPlanDto) {
        PageInfo<TCwReceiptPlan> list = itCwReceiptPlanService.sellist(tCwReceiptPlanDto);
        return ResultEntity.ok(list);
    }

    @RequestMapping("getyingshou")
    public ResultEntity getyingshou(@RequestBody TCwReceiptPlanDto tCwReceiptPlanDto) {
        TCwReceiptPlan tCwReceiptPlan = itCwReceiptPlanService.getyingshou(tCwReceiptPlanDto);
        return ResultEntity.ok(tCwReceiptPlan);
    }

    @RequestMapping("getshishou")
    public ResultEntity getshishou(@RequestBody TCwReceiptPlanDto tCwReceiptPlanDto) {
        TCwReceiptPlan tCwReceiptPlan = itCwReceiptPlanService.getshishou(tCwReceiptPlanDto);
        return ResultEntity.ok(tCwReceiptPlan);
    }

}
